<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class DMZ_Joins</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class DMZ_Joins</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This class adds join helper methods for datamapper.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Andrej Jursa</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_extensions---joins.php.html">/extensions/joins.php</a> (line <span class="field"><a href="../__filesource/fsource_LIST_DMZ_Extensions__extensionsjoins.php.html#a10">10</a></span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																				
												<div class="method-definition">
											<span class="method-result"><a href="../DataMapper/DataMapper.html">DataMapper</a></span>
										<a href="#add_join_condition" title="details" class="method-name">add_join_condition</a>
											(<span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a></span>&nbsp;<span class="var-name">$object</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$condition</span>, [<span class="var-type">array<mixed></span>&nbsp;<span class="var-name">$replace</span> = <span class="var-default">array()</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#find_and_replace_position" title="details" class="method-name">find_and_replace_position</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$query</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$replace</span>, <span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a></span>&nbsp;<span class="var-name">$object</span>)
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methodadd_join_condition" id="add_join_condition"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">add_join_condition</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_DMZ_Extensions__extensionsjoins.php.html#a19">19</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Adds custom condition to last build join clause. You can use question mark as wildcard character for value pased by $replace array.</p>
	<ul class="tags">
				<li><span class="field">return:</span> returns object for method chaining.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../DataMapper/DataMapper.html">DataMapper</a></span>
		<span class="method-name">
			add_join_condition
		</span>
					(<span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a></span>&nbsp;<span class="var-name">$object</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$condition</span>, [<span class="var-type">array<mixed></span>&nbsp;<span class="var-name">$replace</span> = <span class="var-default">array()</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a></span>
				<span class="var-name">$object</span><span class="var-description">: model object which will be using this function.</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$condition</span><span class="var-description">: SQL condition added to last join clause.</span>			</li>
					<li>
				<span class="var-type">array<mixed></span>
				<span class="var-name">$replace</span><span class="var-description">: array of values replaced for corresponding question marks (by position in condition string).</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfind_and_replace_position" id="find_and_replace_position"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">find_and_replace_position</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_DMZ_Extensions__extensionsjoins.php.html#a40">40</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces first found question mark from the left by $replace value.</p>
	<ul class="tags">
				<li><span class="field">return:</span> altered SQL query.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			find_and_replace_position
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$query</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$replace</span>, <span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a></span>&nbsp;<span class="var-name">$object</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$query</span><span class="var-description">: SQL query to operate at.</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$replace</span><span class="var-description">: value which will be replaced into position of first found question mark.</span>			</li>
					<li>
				<span class="var-type"><a href="../DataMapper/DataMapper.html">DataMapper</a></span>
				<span class="var-name">$object</span><span class="var-description">: model object.</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Fri, 13 Sep 2013 12:32:37 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a>
	</p>
	</div></body>
</html>